import request from "@/utils/request";

//登陆api
export const PostLogin = (data) => {
  return request({
    url: "/login",
    method: "post",
    data,
  });
};
//用户注册接口
export const PostRegister = (data) => {
  return request({
    url: "/register",
    method: "post",
    data,
  });
};

//头像上传
export const PostUploads = (data) => {
  return request({
    url: "/uploads",
    method: "post",
    data,
  });
};

//短信发送
export const PostSendsms = (data) => {
  return request({
    url: "/sendsms",
    method: "post",
    data,
  });
};

//获取用户信息
export const getInfo = () => {
  return request({
    url: "/info",
  });
};
